class UploadAvatarEntity {
  int errno;
  String errmsg;
  UploadAvatarData data;

  UploadAvatarEntity({this.errno, this.errmsg, this.data});

  UploadAvatarEntity.fromJson(Map<String, dynamic> json) {
    errno = json['errno'];
    errmsg = json['errmsg'];
    data =
    json['data'] != null ? new UploadAvatarData.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errno'] = this.errno;
    data['errmsg'] = this.errmsg;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }


}

class UploadAvatarData {
  String url;

  UploadAvatarData({this.url});

  UploadAvatarData.fromJson(Map<String, dynamic> json) {
    url = json['url'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['url'] = this.url;
    return data;
  }
}
